package com.todo.strategy.offline.iface.request;

import com.todo.common.common.entity.CurrentStaff;
import com.todo.strategy.offline.iface.base.BaseMemoContent;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author azhebuxing
 * @date 2024/11/28 03:50
 * @description
 */
@Data
@Schema(title = "新增备忘录入参", description = "新增备忘录入参")
public class InsertMemoTemplateReq {

    private CurrentStaff _staff;

    /**
     * 名称
     */
    @Schema(title = "名称", description = "名称")
    private String name;
    /**
     * 描述
     */
    @Schema(title = "描述", description = "描述")
    private String desc;
    /**
     * 备忘录类型
     */
    @Schema(title = "备忘录类型", description = "备忘录类型")
    private Integer memoType;
    /**
     * 建议攻略类型
     */
    @Schema(title = "建议攻略类型", description = "建议攻略类型")
    private Integer suggestStrategy;
    /**
     * 详情信息
     */
    @Schema(title = "详情信息", description = "详情信息")
    private BaseMemoContent memoContent;
    /**
     * 参考意见
     */
    @Schema(title = "参考意见", description = "参考意见")
    private String referenceOpinion;

    public boolean baseCheck() {
        if (name == null || desc == null || memoType == null || memoContent == null) {
            return false;
        }
        return true;
    }
}
